<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
    .box {
      width: 200px;
      height: 100px;
      line-height: 100px;
      margin: 10px;
      border: 3px solid #000;
      text-align: center;
      border-radius: 5px;
      box-shadow: 2px 2px 2px #ccc;
    }
  </style>
</head>

<body>
    <div id="app">
        <p v-if="gender === 1">性别: 男</p>
        <p v-else>性别: 女</p>
        <hr/>
        <p v-if="score >= 90">成绩评定A: 奖励电脑一台</p>
        <p v-else-if="score >=70"> 成绩评定B: 奖励周末郊游</p>
        <p v-else-if="score >= 60">成绩评定C: 奖励零食礼包</p>
        <p v-else>成绩评定D: 惩罚一周不能玩手机</p>
    </div>

    <script src="./node_modules/vue/dist/vue.js"></script>
    <script>
        const app = new Vue({
            el: '#app',
            data: {
                gender: 2,
                score: 98
            }
        })
    </script>
</body>

</html>